package util;

import locacao.LocacaoDAO;
import cliente.ClienteDAO;
import cliente.ClienteDAOImplements;
import clientePJ.ClientePJDAO;
import clientePJ.ClientePJDAOImplements;
import veiculo.VeiculoDAO;
import veiculo.VeiculoDAOImplements;


public class DAOFactory {

//	private static final ClientePJDAO ClientePJDAO = null;

	public static ClienteDAO criaClienteDAO(){
		ClienteDAOImplements clienteDAO = new ClienteDAOImplements();
		clienteDAO.setSession(HibernateUtil.getSession().getCurrentSession());	
		return clienteDAO;
	}
	
	public static VeiculoDAO criaVeiculoDAO(){
		VeiculoDAOImplements veiculoDAO = new VeiculoDAOImplements();
		veiculoDAO.setSession(HibernateUtil.getSession().getCurrentSession());	
		return veiculoDAO;
	
 }
	
	public static ClientePJDAO criaClientePJDAO(){
		ClientePJDAOImplements clientePJDAO = new ClientePJDAOImplements();
		clientePJDAO.setSession(HibernateUtil.getSession().getCurrentSession());	
		return clientePJDAO;
	}

	public static LocacaoDAO criaLocacaoDAO() {
		// TODO Auto-generated method stub
		return null;
	}
	
}